package com.biomatch.mqtt;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "spring.mqtt")
public class MqttClientConfig {
    private String broker;
    //连接服务服务器的用户
    // @Value("admin")
    private String userName;
    //连接服务器的密码
    // @Value("public")
    private String password;
    //服务器的服务质量
    private int qos;
    //心跳时间
    private int keepAliveInterval;
    //是否清楚对话
    private String cleansession;
    //订阅者id
    private String clientId;
}
